import Vuex from 'vuex'
import Vue from 'vue'
Vue.use(Vuex)
import axios from 'axios'
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'
export default new Vuex.Store({
    state:{
        user:sessionStorage.getItem('user') ? window.JSON.parse(sessionStorage.getItem('user')):''
    },
    mutations:{
    },
    getters:{
        getId(state){
            return state.user.userId
        }
    }
})
